package com.chenglai.seckill.pojo;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;
import java.io.Serializable;

/**
 * @author rxh
 */
@ApiModel(value = "t_cl_seckill_goods")
@Table(name = "t_cl_seckill_goods")
public class SeckillGoods implements Serializable {


    /**
     * 主键
     */
    @Id
    @Column(name = "sg_id", updatable = false)
    @ApiModelProperty(value = "主键")
    private Integer sgId;

    /**
     * 门店ID
     */
    @Column(name = "shop_id")
    @ApiModelProperty(value = "门店ID")
    private Integer shopId;

    /**
     * 秒杀活动ID
     */
    @Column(name = "seckill_id")
    @ApiModelProperty(value = "秒杀活动ID")
    private Integer seckillId;

    /**
     * 商品ID
     */
    @Column(name = "goods_id")
    @ApiModelProperty(value = "商品ID")
    private Integer goodsId;

    /**
     * 抢购数量
     */
    @Column(name = "sg_number")
    @ApiModelProperty(value = "抢购数量")
    private Integer sgNumber;

    /**
     * 抢购价格
     */
    @Column(name = "sg_price")
    @ApiModelProperty(value = "抢购价格")
    private Double sgPrice;

    private Integer inventoryNumber;

    public Integer getSgId() {
        return sgId;
    }

    public void setSgId(Integer sgId) {
        this.sgId = sgId;
    }


    public Integer getShopId() {
        return shopId;
    }

    public void setShopId(Integer shopId) {
        this.shopId = shopId;
    }


    public Integer getGoodsId() {
        return goodsId;
    }

    public void setGoodsId(Integer goodsId) {
        this.goodsId = goodsId;
    }


    public Integer getSgNumber() {
        return sgNumber;
    }

    public void setSgNumber(Integer sgNumber) {
        this.sgNumber = sgNumber;
    }


    public Double getSgPrice() {
        return sgPrice;
    }

    public void setSgPrice(Double sgPrice) {
        this.sgPrice = sgPrice;
    }

    public Integer getSeckillId() {
        return seckillId;
    }

    public void setSeckillId(Integer seckillId) {
        this.seckillId = seckillId;
    }

    public Integer getInventoryNumber() {
        return inventoryNumber;
    }

    public void setInventoryNumber(Integer inventoryNumber) {
        this.inventoryNumber = inventoryNumber;
    }
}
